import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
	  //120.26.196.115  localhost
	  host:"120.26.196.115",
	  count:0,
	  user_id:"",
	  user_password:"",
	  user_login:0, //0表示没有登录，1表示登录了。
  },
  mutations: {
	  addUser(state,id,password){
		state.user_id=id,
		state.user_password=password,
		state.user_login=1
	  },
  },
  actions: {
  },
  modules: {
  }
})
